﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="_4T.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPlaceHolder" runat="server">
<section class="grid_12">
		<div class="block-border"><form class="block-content form" id="simple_form" method="post" action="" runat="server">
			<h1>Đăng ký</h1>			
			<fieldset class="grey-bg register">
				<legend>Thông tin</legend>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Tên đăng nhập</label></div>
					<div class="rp_right"><asp:TextBox ID="txtUsername" runat="server" CssClass="full-width" ValidationGroup="Register"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ToolTip="Trường bắt buộc" ControlToValidate="txtUsername" ValidationGroup="Register"></asp:RequiredFieldValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Mật khẩu</label></div>
					<div class="rp_right"><asp:TextBox ID="txtPassword" runat="server" CssClass="full-width" TextMode="Password" ValidationGroup="Register"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtPassword" ToolTip="Trường bắt buộc" ValidationGroup="Register"></asp:RequiredFieldValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Nhập lại Mật khẩu</label></div>
					<div class="rp_right"><asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="full-width" TextMode="Password" ValidationGroup="Register"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtConfirmPassword" ToolTip="Trường bắt buộc" ValidationGroup="Register"></asp:RequiredFieldValidator><asp:CompareValidator
                                ID="CompareValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword" ValidationGroup="Register" ToolTip="Mật khẩu không khớp"></asp:CompareValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Ngày sinh</label></div>
					<div class="rp_right"><asp:TextBox ID="txtDOB" runat="server" CssClass="full-width" ValidationGroup="Register"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="txtDOB" ToolTip="Trường bắt buộc" ValidationGroup="Register"></asp:RequiredFieldValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Họ và tên</label></div>
					<div class="rp_right"><asp:TextBox ID="txtFullname" runat="server" CssClass="full-width" ValidationGroup="Register"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator4" runat="server" ValidationGroup="Register" ErrorMessage="*" ControlToValidate="txtFullname" ToolTip="Trường bắt buộc"></asp:RequiredFieldValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title" class="required">Email</label></div>
					<div class="rp_right"><asp:TextBox ID="txtEmail" runat="server" ValidationGroup="Register" CssClass="full-width"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ToolTip="Trường bắt buộc" ControlToValidate="txtEmail" ValidationGroup="Register"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ToolTip="Email sai định dạng" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="Register"></asp:RegularExpressionValidator></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title">Địa chỉ</label></div>
					<div class="rp_right"><asp:TextBox ID="txtAddr" ValidationGroup="Register" runat="server" CssClass="full-width"></asp:TextBox></div>
                </div>
                <div class="rpContain">
					<div class="rp_left"><label for="complex-title">Số điện thoại</label></div>
					<div class="rp_right"><asp:TextBox ID="txtPhoneNumber" ValidationGroup="Register" runat="server" CssClass="full-width"></asp:TextBox></div>
                </div>
			</fieldset>            

			<fieldset class="grey-bg no-margin">
            <asp:HiddenField runat="server" ID="hdfProfileCode" />
				<%--<legend>Action on create</legend>--%>
				<p class="input-with-button">
					<%--<label for="simple-action">Select action</label>
					<select name="simple-action" id="simple-action">
						<option value="1">Save and publish</option>
						<option value="2">Save only</option>
					</select>--%>
                    <asp:Button ID="btnRegister" runat="server" Text="Đăng ký" 
                        CausesValidation="true" ValidationGroup="Register" 
                        onclick="btnRegister_Click" />
					<%--<button type="button">Create</button>--%>
				</p>
			</fieldset>
					
		</form></div>
</section>
</asp:Content>
